package com.mgear.ldap.service;

public class LDAPDataServiceProxy implements com.mgear.ldap.service.LDAPDataService_PortType {
  private String _endpoint = null;
  private com.mgear.ldap.service.LDAPDataService_PortType lDAPDataService_PortType = null;
  
  public LDAPDataServiceProxy() {
    _initLDAPDataServiceProxy();
  }
  
  public LDAPDataServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initLDAPDataServiceProxy();
  }
  
  private void _initLDAPDataServiceProxy() {
    try {
      lDAPDataService_PortType = (new com.mgear.ldap.service.LDAPDataService_ServiceLocator()).getLDAPDataServicePort();
      if (lDAPDataService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)lDAPDataService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)lDAPDataService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (lDAPDataService_PortType != null)
      ((javax.xml.rpc.Stub)lDAPDataService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.mgear.ldap.service.LDAPDataService_PortType getLDAPDataService_PortType() {
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType;
  }
  
  public java.lang.String orgQueryServices_queryOrgByCondition(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.orgQueryServices_queryOrgByCondition(arg0);
  }
  
  public java.lang.String orgQueryServices_queryOrg4Detail(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.orgQueryServices_queryOrg4Detail(arg0);
  }
  
  public java.lang.String userQueryServices_userQueryByCondition(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.userQueryServices_userQueryByCondition(arg0);
  }
  
  public java.lang.String userQueryServices_userQuery4Detail(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.userQueryServices_userQuery4Detail(arg0);
  }
  
  public java.lang.String userQueryServices_userQueryRoles(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.userQueryServices_userQueryRoles(arg0);
  }
  
  public java.lang.String roleQueryServices_roleQueryByCondition(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.roleQueryServices_roleQueryByCondition(arg0);
  }
  
  public java.lang.String roleQueryServices_roleQuery4Detail(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.roleQueryServices_roleQuery4Detail(arg0);
  }
  
  public java.lang.String roleQueryServices_roleQueryUsersList(java.lang.String arg0) throws java.rmi.RemoteException{
    if (lDAPDataService_PortType == null)
      _initLDAPDataServiceProxy();
    return lDAPDataService_PortType.roleQueryServices_roleQueryUsersList(arg0);
  }
  
  
}